﻿<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <%@include file="../../common/headaction.jsp" %>
    <script type="text/javascript">
        /**
         * 重置查询条件并查询
         */
        function doresetSearch() {
            $("div table input").each(
                    function(i) {
                        if ($(this).attr("type") == 'text'
                                || $(this).attr("type") == 'password') {
                            $(this).val('');
                        }
                    })
            $("div table select").val('');
            super_doSearch();
        }
    </script>
</head>
<body>
<%--<div id="scrollContent">
    <s:if test="actionErrors.size()>0 || actionMessages.size()>0 || fieldErrors.size()>0">
        <div id="SystemErrorMessage">
            <s:actionerror/>
            <s:actionmessage/>
            <s:fielderror/>
        </div>
    </s:if>
    <div class="box_tool_mid padding_right5">
        <div class="center">
            <div class="left">
                <div class="right">
                    <div class="padding_top8 padding_left10">
                        <table>
                            <s:form theme="simple" name="ysform">
                                <s:hidden name="pager.formname" value="ysform"/>
                                <s:hidden name="pager.currentPageno" id="yspager_currentPageno"/>
                                <tr>
                                    <td align="center" nowrap="nowrap" class="">
                                        &nbsp;站点名称：<s:textfield name="xxfbSite.zdmc" maxlength="20" size="20" />
                                    </td>
                                    <td align="center" nowrap="nowrap" class="">
                                        &nbsp;站点编码：<s:textfield name="xxfbSite.zdbm" maxlength="20" size="20" />
                                    </td>
                                    <td align="center" nowrap="nowrap" class="" >
                                        &nbsp;站点状态：<s:select name="xxfbSite.state" onchange="super_doSearch()" list="getSysCode('qyyf')" listKey="id" listValue="caption" headerKey="" headerValue="---请选择---" autoWidth="true"/>
                                    </td>
                                    <td>&nbsp;&nbsp;<button onclick="super_doSearch()"><span class="icon_find">查询</span></button>
                                        <button type="button" onclick="doresetSearch();"><span class="icon_recycle">重置</span></button></td>
                                </tr>
                            </s:form>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <div id="userRoleMenuButton">
        <button onclick="openEntity()"><span class="icon_add" title="">新增</span></button>
        <button onclick="doModify()"><span class="icon_edit" title="">修改</span></button>
        <button onclick="doRemove()"><span class="icon_delete" title="">删除</span></button>
    </div>
    <div>
        <table class="treeTable" headFixMode="true" expandable="false"
               useMultColor="true" useCheckBox="true" style="text-align: center">
            <tr>
                <th width="3%">
                </th>
                <th width="15%">
                    站点名称
                </th>
                <th width="10%">
                    站点编码
                </th>
                <th width="10%">
                    站点状态
                </th>
                <th width="20%">
                    创建时间
                </th>
            </tr>
            <s:iterator value="resultData">
                <tr id="node-${wid}" class="child-of-node-${wid}">
                    <td>
                        <s:checkbox id="%{wid}" name="selectNode" fieldValue="%{wid}"/>
                    </td>
                    <td>
                        <a href="javascript:openEntity('<s:property value="wid"/>')"><s:property value="zdmc"/></a>
                    </td>
                    <td>
                        <s:property value="zdbm"/>
                    </td>
                    <td>
                        <s:property value="zdzt"/>
                    </td>
                    <td>
                        <s:date name="cjsj" format="yyyy-MM-dd HH:mm"/>
                    </td>
                </tr>
            </s:iterator>
        </table>
    </div>
    <div style="height: 45px;">
        <div id="pagelist" style="display: none">
            <s:property value="pager.postToolBar" escape="false"/>
        </div>

        <div class="clear"></div>
    </div>
</div>--%>
<form name="ysform" method="post" class="form-horizontal">
    <div id="page-content" class="page-content">
        <div class="control-group">
            <table>
                <s:hidden name="pager.formname" value="ysform"/>
                <s:hidden name="pager.currentPageno" id="yspager_currentPageno"/>
                <<tr>
                <td align="center" nowrap="nowrap" class="">
                    &nbsp;站点名称：<s:textfield name="xxfbSite.zdmc" maxlength="20" size="20" />
                </td>
                <td align="center" nowrap="nowrap" class="">
                    &nbsp;站点编码：<s:textfield name="xxfbSite.zdbm" maxlength="20" size="20" />
                </td>
                <td align="center" nowrap="nowrap" class="" >
                    &nbsp;站点状态：<s:select name="xxfbSite.state" onchange="super_doSearch()" list="getSysCode('qyyf')" listKey="id" listValue="caption" headerKey="" headerValue="---请选择---" autoWidth="true"/>
                </td>
                <td>&nbsp;&nbsp;<button onclick="super_doSearch()"><span class="icon_find">查询</span></button>
                    <button type="button" onclick="doresetSearch();"><span class="icon_recycle">重置</span></button></td>
            </tr>
            </table>
        </div>
        <div class="row userRoleMenuButton">
            <div class="span6">
                <div class="row">
                    <div class="span6">
                        <a onclick="openEntity()"class="btn btn-success btn-xzweb" data-original-title="新增">新增</a>
                        <a onclick="doModify()" class="btn btn-success btn-xzweb" data-original-title="修改">修改</a>
                        <a onclick="doRemove()" class="btn btn-success btn-xzweb" data-original-title="删除">删除</a>
                    </div>
                </div>
            </div>
            <div class="span2 pull-right">
                <s:select list="#{'10':'10','15':'15','25':'25','50':'50','100':'100'}" name="pager.eachPageRows"
                          id="eachPageRows1" onchange="super_doSearch()" cssClass="input-medium"
                          cssStyle="width: 100%;"></s:select>
            </div>

        </div>

        <table id="contentTable" class="table table-striped table-bordered table-hover">
            <tr>
                <th width="3%">
                </th>
                <th width="15%">
                    站点名称
                </th>
                <th width="10%">
                    站点编码
                </th>
                <th width="10%">
                    站点状态
                </th>
                <th width="20%">
                    创建时间
                </th>
            </tr>
            <s:iterator value="resultData">
                <tr id="node-${wid}" class="child-of-node-${wid}">
                    <td>
                        <s:checkbox id="%{wid}" name="selectNode" fieldValue="%{wid}"/>
                    </td>
                    <td>
                        <a href="javascript:openEntity('<s:property value="wid"/>')"><s:property value="zdmc"/></a>
                    </td>
                    <td>
                        <s:property value="zdbm"/>
                    </td>
                    <td>
                        <s:property value="zdzt"/>
                    </td>
                    <td>
                        <s:date name="cjsj" format="yyyy-MM-dd HH:mm"/>
                    </td>
                </tr>
            </s:iterator>
        </table>
        <tags:pagination paginationSize="${pager.eachPageRows}" page="${pager}"></tags:pagination>
    </div>
</form>
</body>
</html>
<%@include file="../../common/bottomaction.jsp" %>